// 这个是存储订单的数据库
const mongoose = require('mongoose')

const Schema = mongoose.Schema

mongoose.connect("mongodb://localhost/shopUser", { useNewUrlParser: true })

const carSchema = new Schema({
    orderUName:{
        type: String,
        required: true
    },
    selectFlag:{
        type: Boolean,
        required: true
    },
    orderUName:{
        type: String,
        required: true
    },
    orderSName:{
        type: String,
        required: true
    },
    orderId:{
        type: String,
        required: true
    },
    dataList:{
        type: Array,
        required: true
    }

})

module.exports = mongoose.model('carInfo', carSchema)